//
//  ThreePicReadCell.m
//  NeteaseNewsLY
//
//  Created by dllo on 16/1/26.
//  Copyright © 2016年 www.lanou3g.com 蓝鸥科技. All rights reserved.
//

#import "ThreePicReadCell.h"

@implementation ThreePicReadCell
- (void)dealloc
{
    [_oneImage release];
    [_twoImage release];
    [_threeImage release];
    [_title release];
    [_lineLabel release];
    [_source release];
    [_bigKuang release];
    [super dealloc];
}
- (instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier
{
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if ( self) {
        self.bigKuang = [[UIImageView alloc] init];
        _bigKuang.image = [UIImage imageNamed:@"white"];
        [self.contentView addSubview:_bigKuang];
        //        _bigKuang.layer.borderWidth = 1;
        //        _bigKuang.layer.borderColor = [UIColor grayColor].CGColor;
        //        _bigKuang.layer.cornerRadius = 3;
        //        _bigKuang.clipsToBounds = YES;
        [_bigKuang release];
        
        self.oneImage = [[UIImageView alloc] init];
        [self.bigKuang addSubview:_oneImage];
        [_oneImage release];
        
        self.twoImage = [[UIImageView alloc] init];
        [self.bigKuang addSubview:_twoImage];
        [_twoImage release];
        
        self.threeImage = [[UIImageView alloc] init];
        [self.bigKuang addSubview:_threeImage];
        [_threeImage release];
        
        self.title = [[UILabel alloc] init];
        [self.bigKuang addSubview:_title];
        [_title release];
        
        self.lineLabel = [[UILabel alloc] init];
        [self.bigKuang addSubview:_lineLabel];
        [_lineLabel release];
        
        self.source = [[UILabel alloc] init];
        [self.bigKuang addSubview:_source];
        [_source release];
        
    }
    return self;
}
- (void)layoutSubviews
{
    [super layoutSubviews];
    
    _bigKuang.frame = CGRectMake(WIDTH * 10, HEIGHT * 5, WIDTH * 355, HEIGHT * 300);
    
    _title.frame = CGRectMake(0, HEIGHT * 10, WIDTH * 335, HEIGHT * 25);
    
    _oneImage.frame = CGRectMake(0, HEIGHT * 40, WIDTH * 115 , HEIGHT * 80);
    
    _twoImage.frame = CGRectMake(WIDTH * 120, HEIGHT * 40, WIDTH * 115, HEIGHT * 80);
    
    _threeImage.frame = CGRectMake(WIDTH * 240, HEIGHT * 40, WIDTH * 115, HEIGHT * 80);
    
    
    _lineLabel.frame = CGRectMake(WIDTH * 10, HEIGHT * 130, WIDTH * 335, HEIGHT * 1);
    _lineLabel.backgroundColor = [UIColor grayColor];
    _lineLabel.alpha = 0.2;
    
    _source.frame = CGRectMake(WIDTH * 10, HEIGHT * 135, WIDTH * 100, HEIGHT * 25);
    _source.font = [UIFont systemFontOfSize:10];
    _source.textColor = [UIColor grayColor];
}

@end
